package cn.itcast.client;

import cn.itcast.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Author: taft
 * @Date: 2018-9-27 10:53
 */
@Component
public class ConsumerFallback implements ConsumerClient {

    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("feign熔断降级");
        return user;
    }
}
